import Vue from 'vue'
import App from './App'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue(App)
app.$mount()
export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: ['pages/logs/main', 'pages/index/main',
      '^pages/hero/main', 'pages/game/main', 'pages/weapon/main', 'pages/details/main'
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    },
    tabBar: {
      color: '#fff',
      selectedColor: '#000',
      backgroundColor: '#ddd',
      list: [{
          pagePath: 'pages/index/main',
          text: '首页',
          iconPath: '/static/img/mian.png',
          selectedIconPath: '/static/img/mian-active.png'
        },
        {
          pagePath: 'pages/hero/main',
          text: '英雄页',
          iconPath: '/static/img/detials.png',
          selectedIconPath: '/static/img/details-active.png'
        },
        {
          pagePath: 'pages/weapon/main',
          text: '武器页',
          iconPath: '/static/img/weapon.png',
          selectedIconPath: '/static/img/weapon-active.png'

        },
        {
          pagePath: 'pages/game/main',
          text: '比赛列表',
          iconPath: '/static/img/game.png',
          selectedIconPath: '/static/img/game-active.png'

        }
      ]
    }
  }
}
